<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站视频播放展示</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4F46E5;
            --primary-light: #EEF2FF;
            --secondary: #EC4899;
            --dark: #1E293B;
            --light: #F8FAFC;
            --gray: #64748B;
            --light-gray: #F1F5F9;
            --border: #E2E8F0;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --radius: 10px;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: var(--light);
            color: var(--dark);
            padding-top: 3rem;
            padding-bottom: 4rem;
        }
        
        .container {
            max-width: 1200px;
        }
        
        .page-header {
            text-align: center;
            margin-bottom: 3rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .page-title {
            font-size: 2.25rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            color: var(--dark);
        }
        
        .page-subtitle {
            color: var(--gray);
            max-width: 700px;
            margin: 0 auto;
        }
        
        /* 视频区域通用样式 */
        .video-section {
            margin-bottom: 4rem;
            padding: 1.5rem;
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }
        
        .section-header {
            margin-bottom: 1.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .section-title i {
            color: var(--primary);
        }
        
        .section-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .view-all {
            font-size: 0.9rem;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            transition: all 0.2s ease;
        }
        
        .view-all:hover {
            color: #3B34D1;
            gap: 0.5rem;
        }
        
        /* 主视频播放器样式 */
        .main-video-container {
            border-radius: var(--radius);
            overflow: hidden;
            background-color: #000;
            margin-bottom: 1.5rem;
            position: relative;
        }
        
        .main-video {
            width: 100%;
            aspect-ratio: 16/9;
            object-fit: cover;
        }
        
        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: opacity 0.3s ease;
        }
        
        .play-button {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            transition: transform 0.3s ease;
        }
        
        .video-overlay:hover .play-button {
            transform: scale(1.1);
        }
        
        .video-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }
        
        .video-meta {
            flex-grow: 1;
        }
        
        .video-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .video-stats {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .video-stat {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .video-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-size: 0.9rem;
            transition: all 0.2s ease;
        }
        
        /* 视频网格布局 */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        /* 视频卡片样式 */
        .video-card {
            border-radius: var(--radius);
            overflow: hidden;
            background-color: white;
            transition: all 0.3s ease;
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
        }
        
        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0,0,0,0.1);
        }
        
        .video-thumbnail-container {
            position: relative;
            width: 100%;
        }
        
        .video-thumbnail {
            width: 100%;
            aspect-ratio: 16/9;
            object-fit: cover;
        }
        
        .duration-badge {
            position: absolute;
            bottom: 0.5rem;
            right: 0.5rem;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .video-card-content {
            padding: 1rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .video-card-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex-grow: 1;
        }
        
        .video-card-meta {
            color: var(--gray);
            font-size: 0.85rem;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }
        
        .channel-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        .channel-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        /* 播放列表样式 */
        .playlist-container {
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 1.5rem;
        }
        
        .playlist-sidebar {
            background-color: var(--light-gray);
            border-radius: var(--radius);
            padding: 1rem;
            max-height: 600px;
            overflow-y: auto;
        }
        
        .playlist-title {
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .playlist-item {
            display: flex;
            gap: 0.75rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        
        .playlist-item:last-child {
            border-bottom: none;
        }
        
        .playlist-item:hover {
            background-color: rgba(0,0,0,0.03);
        }
        
        .playlist-item.active {
            background-color: var(--primary-light);
            padding-left: 0.75rem;
            padding-right: 0.75rem;
            border-radius: 6px;
        }
        
        .playlist-thumbnail {
            width: 100px;
            height: 60px;
            border-radius: 4px;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .playlist-item-info {
            flex-grow: 1;
            min-width: 0;
        }
        
        .playlist-item-title {
            font-weight: 500;
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .playlist-item-meta {
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        /* 视频详情与评论区 */
        .video-details {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
        }
        
        .channel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .channel-details {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .channel-header-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .channel-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .channel-subscribers {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 0;
        }
        
        .video-description {
            background-color: var(--light-gray);
            padding: 1rem;
            border-radius: var(--radius);
            margin-bottom: 2rem;
            line-height: 1.6;
        }
        
        .comments-section {
            margin-top: 2rem;
        }
        
        .comments-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .comments-count {
            font-weight: 600;
        }
        
        .comment-sort {
            color: var(--primary);
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .comment-form {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .comment-input {
            flex-grow: 1;
        }
        
        .comment-input textarea {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 0.75rem 1.25rem;
            resize: none;
            height: 60px;
            font-size: 0.95rem;
            transition: border-color 0.2s ease;
        }
        
        .comment-input textarea:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.5rem;
        }
        
        .comment-item {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .comment-item:last-child {
            border-bottom: none;
        }
        
        .comment-content {
            flex-grow: 1;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0.25rem;
        }
        
        .comment-text {
            margin-bottom: 0.5rem;
            line-height: 1.5;
        }
        
        .comment-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .comment-action {
            color: var(--gray);
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .playlist-container {
                grid-template-columns: 1fr;
            }
            
            .playlist-sidebar {
                max-height: 300px;
            }
            
            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .page-title {
                font-size: 1.85rem;
            }
            
            .section-title {
                font-size: 1.35rem;
            }
            
            .video-controls {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .video-actions {
                width: 100%;
                justify-content: space-between;
            }
            
            .action-btn span {
                display: none;
            }
            
            .action-btn {
                gap: 0;
                padding: 0.5rem;
                aspect-ratio: 1/1;
                border-radius: 50%;
            }
            
            .channel-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .channel-actions {
                width: 100%;
            }
            
            .comments-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }
        
        @media (max-width: 576px) {
            .video-grid {
                grid-template-columns: 1fr;
            }
            
            .section-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .playlist-thumbnail {
                width: 80px;
                height: 50px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 页面标题 -->
        <div class="page-header">
            <h1 class="page-title">社交网站视频播放展示</h1>
            <p class="page-subtitle">多种视频播放和展示形式，提供丰富的视频观看体验和互动功能</p>
        </div>
        
        <!-- 1. 主视频播放器与详情 - 适合展示单个视频及相关信息 -->
        <div class="video-section">
            <div class="section-header">
                <h2 class="section-title"><i class="fas fa-play-circle"></i> 视频播放详情</h2>
            </div>
            
            <div class="main-video-container">
                <video class="main-video" poster="https://picsum.photos/seed/mainvideo/1200/675">
                    <source src="#" type="video/mp4">
                    您的浏览器不支持视频播放
                </video>
                <div class="video-overlay" id="mainVideoOverlay">
                    <div class="play-button">
                        <i class="fas fa-play"></i>
                    </div>
                </div>
            </div>
            
            <div class="video-controls">
                <div class="video-meta">
                    <h3 class="video-title">2023年最新摄影技巧大全：从入门到精通</h3>
                    <div class="video-stats">
                        <div class="video-stat"><i class="far fa-eye"></i> 125,487 次观看</div>
                        <div class="video-stat"><i class="far fa-calendar"></i> 2023-06-10</div>
                        <div class="video-stat"><i class="far fa-comment"></i> 342 条评论</div>
                    </div>
                </div>
                <div class="video-actions">
                    <button class="action-btn btn btn-outline-primary"><i class="far fa-thumbs-up"></i> <span>点赞</span></button>
                    <button class="action-btn btn btn-outline-primary"><i class="far fa-bookmark"></i> <span>收藏</span></button>
                    <button class="action-btn btn btn-outline-primary"><i class="far fa-share-square"></i> <span>分享</span></button>
                </div>
            </div>
            
            <div class="video-details">
                <div class="channel-header">
                    <div class="channel-details">
                        <img src="https://picsum.photos/seed/channel1/200/200" alt="频道头像" class="channel-header-avatar">
                        <div>
                            <h4 class="channel-name">摄影技巧频道</h4>
                            <p class="channel-subscribers">1.2M 订阅者</p>
                        </div>
                    </div>
                    <div class="channel-actions">
                        <button class="btn btn-primary">订阅</button>
                    </div>
                </div>
                
                <div class="video-description">
                    <p>本视频详细介绍了2023年最新的摄影技巧，从基础构图到高级光影控制，帮助摄影爱好者快速提升拍摄水平。</p>
                    <p>内容包括：</p>
                    <ul>
                        <li>黄金分割构图的进阶应用</li>
                        <li>不同光线条件下的拍摄技巧</li>
                        <li>手机摄影专业模式的使用方法</li>
                        <li>后期修图的核心步骤</li>
                    </ul>
                    <p>欢迎在评论区分享你的摄影作品和心得！</p>
                </div>
                
                <div class="comments-section">
                    <div class="comments-header">
                        <div class="comments-count">342 条评论</div>
                        <div class="comment-sort"><i class="fas fa-sort"></i> 按热度排序</div>
                    </div>
                    
                    <div class="comment-form">
                        <img src="https://picsum.photos/seed/user123/200/200" alt="用户头像" class="user-avatar">
                        <div class="comment-input">
                            <textarea placeholder="写下你的评论..."></textarea>
                            <div class="comment-actions">
                                <button class="btn btn-primary">发布评论</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="comment-item">
                        <img src="https://picsum.photos/seed/user456/200/200" alt="评论用户头像" class="user-avatar">
                        <div class="comment-content">
                            <div class="comment-author">摄影爱好者小李</div>
                            <div class="comment-text">非常实用的教程！特别是关于黄金分割构图的讲解，让我茅塞顿开，昨天用这个技巧拍的照片得到了很多好评。</div>
                            <div class="comment-meta">
                                <div>2天前</div>
                                <div class="comment-action"><i class="far fa-thumbs-up"></i> 128</div>
                                <div class="comment-action">回复</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="comment-item">
                        <img src="https://picsum.photos/seed/user789/200/200" alt="评论用户头像" class="user-avatar">
                        <div class="comment-content">
                            <div class="comment-author">手机摄影达人</div>
                            <div class="comment-text">想请问一下，视频里提到的那个手机修图APP，安卓系统有吗？我找了很久没找到。</div>
                            <div class="comment-meta">
                                <div>3天前</div>
                                <div class="comment-action"><i class="far fa-thumbs-up"></i> 45</div>
                                <div class="comment-action">回复</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 2. 视频播放列表 - 适合展示系列视频或相关推荐 -->
        <div class="video-section">
            <div class="section-header">
                <h2 class="section-title"><i class="fas fa-list"></i> 视频播放列表</h2>
                <a href="#" class="view-all">查看全部 <i class="fas fa-chevron-right"></i></a>
            </div>
            
            <div class="playlist-container">
                <div class="main-video-container">
                    <video class="main-video" poster="https://picsum.photos/seed/course1/1200/675">
                        <source src="#" type="video/mp4">
                        您的浏览器不支持视频播放
                    </video>
                    <div class="video-overlay">
                        <div class="play-button">
                            <i class="fas fa-play"></i>
                        </div>
                    </div>
                </div>
                
                <div class="playlist-sidebar">
                    <h3 class="playlist-title">Python编程入门到精通系列课程 (12集)</h3>
                    
                    <div class="playlist-item active">
                        <img src="https://picsum.photos/seed/lesson1/200/120" alt="课程缩略图" class="playlist-thumbnail">
                        <div class="playlist-item-info">
                            <div class="playlist-item-title">1. Python环境搭建与基本语法</div>
                            <div class="playlist-item-meta">18:45 · 24.5k次观看</div>
                        </div>
                    </div>
                    
                    <div class="playlist-item">
                        <img src="https://picsum.photos/seed/lesson2/200/120" alt="课程缩略图" class="playlist-thumbnail">
                        <div class="playlist-item-info">
                            <div class="playlist-item-title">2. 变量、数据类型与运算符</div>
                            <div class="playlist-item-meta">22:15 · 19.8k次观看</div>
                        </div>
                    </div>
                    
                    <div class="playlist-item">
                        <img src="https://picsum.photos/seed/lesson3/200/120" alt="课程缩略图" class="playlist-thumbnail">
                        <div class="playlist-item-info">
                            <div class="playlist-item-title">3. 条件语句与循环结构</div>
                            <div class="playlist-item-meta">25:30 · 18.2k次观看</div>
                        </div>
                    </div>
                    
                    <div class="playlist-item">
                        <img src="https://picsum.photos/seed/lesson4/200/120" alt="课程缩略图" class="playlist-thumbnail">
                        <div class="playlist-item-info">
                            <div class="playlist-item-title">4. 函数定义与调用</div>
                            <div class="playlist-item-meta">20:10 · 16.7k次观看</div>
                        </div>
                    </div>
                    
                    <div class="playlist-item">
                        <img src="https://picsum.photos/seed/lesson5/200/120" alt="课程缩略图" class="playlist-thumbnail">
                        <div class="playlist-item-info">
                            <div class="playlist-item-title">5. 列表、元组与字典</div>
                            <div class="playlist-item-meta">28:45 · 15.3k次观看</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 3. 视频网格展示 - 适合首页推荐或分类浏览 -->
        <div class="video-section">
            <div class="section-header">
                <h2 class="section-title"><i class="fas fa-th"></i> 推荐视频</h2>
                <div class="section-actions">
                    <button class="btn btn-outline-primary">最新</button>
                    <button class="btn btn-primary">热门</button>
                    <a href="#" class="view-all">更多视频 <i class="fas fa-chevron-right"></i></a>
                </div>
            </div>
            
            <div class="video-grid">
                <div class="video-card">
                    <div class="video-thumbnail-container">
                        <img src="https://picsum.photos/seed/video1/400/225" alt="视频缩略图" class="video-thumbnail">
                        <div class="duration-badge">12:35</div>
                    </div>
                    <div class="video-card-content">
                        <h3 class="video-card-title">城市风光延时摄影：日出到日落的美丽变化</h3>
                        <div class="channel-info">
                            <img src="https://picsum.photos/seed/channel2/100/100" alt="频道头像" class="channel-avatar">
                            <span class="video-card-meta">风光摄影</span>
                        </div>
                        <div class="video-card-meta">
                            <span>89.2k 次观看</span>
                            <span>3天前</span>
                        </div>
                    </div>
                </div>
                
                <div class="video-card">
                    <div class="video-thumbnail-container">
                        <img src="https://picsum.photos/seed/video2/400/225" alt="视频缩略图" class="video-thumbnail">
                        <div class="duration-badge">08:42</div>
                    </div>
                    <div class="video-card-content">
                        <h3 class="video-card-title">简易早餐食谱：10分钟做出营养美味的早餐</h3>
                        <div class="channel-info">
                            <img src="https://picsum.photos/seed/channel3/100/100" alt="频道头像" class="channel-avatar">
                            <span class="video-card-meta">美食分享</span>
                        </div>
                        <div class="video-card-meta">
                            <span>124.5k 次观看</span>
                            <span>1周前</span>
                        </div>
                    </div>
                </div>
                
                <div class="video-card">
                    <div class="video-thumbnail-container">
                        <img src="https://picsum.photos/seed/video3/400/225" alt="视频缩略图" class="video-thumbnail">
                        <div class="duration-badge">15:28</div>
                    </div>
                    <div class="video-card-content">
                        <h3 class="video-card-title">初学者吉他教学：3个和弦弹唱多首流行歌曲</h3>
                        <div class="channel-info">
                            <img src="https://picsum.photos/seed/channel4/100/100" alt="频道头像" class="channel-avatar">
                            <span class="video-card-meta">音乐教学</span>
                        </div>
                        <div class="video-card-meta">
                            <span>215.7k 次观看</span>
                            <span>2周前</span>
                        </div>
                    </div>
                </div>
                
                <div class="video-card">
                    <div class="video-thumbnail-container">
                        <img src="https://picsum.photos/seed/video4/400/225" alt="视频缩略图" class="video-thumbnail">
                        <div class="duration-badge">22:10</div>
                    </div>
                    <div class="video-card-content">
                        <h3 class="video-card-title">2023年最新笔记本电脑评测：性价比之王是谁？</h3>
                        <div class="channel-info">
                            <img src="https://picsum.photos/seed/channel5/100/100" alt="频道头像" class="channel-avatar">
                            <span class="video-card-meta">科技评测</span>
                        </div>
                        <div class="video-card-meta">
                            <span>187.3k 次观看</span>
                            <span>4天前</span>
                        </div>
                    </div>
                </div>
                
                <div class="video-card">
                    <div class="video-thumbnail-container">
                        <img src="https://picsum.photos/seed/video5/400/225" alt="视频缩略图" class="video-thumbnail">
                        <div class="duration-badge">05:45</div>
                    </div>
                    <div class="video-card-content">
                        <h3 class="video-card-title">办公室拉伸运动：缓解久坐疲劳的5个动作</h3>
                        <div class="channel-info">
                            <img src="https://picsum.photos/seed/channel6/100/100" alt="频道头像" class="channel-avatar">
                            <span class="video-card-meta">健康生活</span>
                        </div>
                        <div class="video-card-meta">
                            <span>98.6k 次观看</span>
                            <span>5天前</span>
                        </div>
                    </div>
                </div>
                
                <div class="video-card">
                    <div class="video-thumbnail-container">
                        <img src="https://picsum.photos/seed/video6/400/225" alt="视频缩略图" class="video-thumbnail">
                        <div class="duration-badge">18:32</div>
                    </div>
                    <div class="video-card-content">
                        <h3 class="video-card-title">旅行Vlog：探秘云南大理的隐藏景点</h3>
                        <div class="channel-info">
                            <img src="https://picsum.photos/seed/channel7/100/100" alt="频道头像" class="channel-avatar">
                            <span class="video-card-meta">旅行日记</span>
                        </div>
                        <div class="video-card-meta">
                            <span>156.2k 次观看</span>
                            <span>10天前</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 视频播放控制
            const videoOverlays = document.querySelectorAll('.video-overlay');
            videoOverlays.forEach(overlay => {
                overlay.addEventListener('click', function() {
                    const video = this.parentElement.querySelector('video');
                    const playButton = this.querySelector('.play-button i');
                    
                    if (video.paused) {
                        video.play().then(() => {
                            this.style.opacity = '0';
                            playButton.classList.remove('fa-play');
                            playButton.classList.add('fa-pause');
                        }).catch(error => {
                            console.error('播放失败:', error);
                        });
                    } else {
                        video.pause();
                        this.style.opacity = '1';
                        playButton.classList.remove('fa-pause');
                        playButton.classList.add('fa-play');
                    }
                });
            });
            
            // 视频播放结束时显示 overlay
            const videos = document.querySelectorAll('video');
            videos.forEach(video => {
                video.addEventListener('ended', function() {
                    const overlay = this.parentElement.querySelector('.video-overlay');
                    const playButton = overlay.querySelector('.play-button i');
                    
                    overlay.style.opacity = '1';
                    playButton.classList.remove('fa-pause');
                    playButton.classList.add('fa-play');
                });
            });
            
            // 播放列表项点击事件
            const playlistItems = document.querySelectorAll('.playlist-item');
            playlistItems.forEach(item => {
                item.addEventListener('click', function() {
                    // 移除其他项的 active 类
                    playlistItems.forEach(i => i.classList.remove('active'));
                    // 添加当前项的 active 类
                    this.classList.add('active');
                    
                    // 这里可以添加切换视频源的逻辑
                    const videoTitle = this.querySelector('.playlist-item-title').textContent;
                    const videoContainer = document.querySelector('.playlist-container .main-video-container');
                    const video = videoContainer.querySelector('video');
                    const overlay = videoContainer.querySelector('.video-overlay');
                    const playButton = overlay.querySelector('.play-button i');
                    
                    // 更新视频封面（实际应用中会更新视频源）
                    video.poster = `https://picsum.photos/seed/${videoTitle}/1200/675`;
                    
                    // 显示播放按钮
                    video.pause();
                    overlay.style.opacity = '1';
                    playButton.classList.remove('fa-pause');
                    playButton.classList.add('fa-play');
                });
            });
            
            // 视频卡片点击事件
            const videoCards = document.querySelectorAll('.video-card');
            videoCards.forEach(card => {
                card.addEventListener('click', function() {
                    // 在实际应用中，这里会跳转到视频详情页
                    const videoTitle = this.querySelector('.video-card-title').textContent;
                    console.log('播放视频:', videoTitle);
                    
                    // 模拟跳转效果
                    const mainVideoTitle = document.querySelector('.video-title');
                    const mainVideoPoster = document.querySelector('.main-video');
                    
                    mainVideoTitle.textContent = videoTitle;
                    mainVideoPoster.poster = this.querySelector('.video-thumbnail').src;
                    
                    // 滚动到主视频区域
                    document.querySelector('.main-video-container').scrollIntoView({
                        behavior: 'smooth'
                    });
                });
            });
            
            // 点赞按钮交互
            const likeButtons = document.querySelectorAll('.action-btn');
            likeButtons.forEach(button => {
                if (button.querySelector('.fa-thumbs-up')) {
                    button.addEventListener('click', function() {
                        const icon = this.querySelector('.fa-thumbs-up');
                        if (icon.classList.contains('far')) {
                            icon.classList.remove('far');
                            icon.classList.add('fas');
                            this.classList.remove('btn-outline-primary');
                            this.classList.add('btn-primary');
                        } else {
                            icon.classList.remove('fas');
                            icon.classList.add('far');
                            this.classList.remove('btn-primary');
                            this.classList.add('btn-outline-primary');
                        }
                    });
                }
            });
            
            // 收藏按钮交互
            likeButtons.forEach(button => {
                if (button.querySelector('.fa-bookmark')) {
                    button.addEventListener('click', function() {
                        const icon = this.querySelector('.fa-bookmark');
                        if (icon.classList.contains('far')) {
                            icon.classList.remove('far');
                            icon.classList.add('fas');
                            this.classList.remove('btn-outline-primary');
                            this.classList.add('btn-primary');
                        } else {
                            icon.classList.remove('fas');
                            icon.classList.add('far');
                            this.classList.remove('btn-primary');
                            this.classList.add('btn-outline-primary');
                        }
                    });
                }
            });
            
            // 订阅按钮交互
            const subscribeButton = document.querySelector('.channel-actions .btn');
            if (subscribeButton) {
                subscribeButton.addEventListener('click', function() {
                    if (this.textContent === '订阅') {
                        this.textContent = '已订阅';
                        this.classList.remove('btn-primary');
                        this.classList.add('btn-success');
                    } else {
                        this.textContent = '订阅';
                        this.classList.remove('btn-success');
                        this.classList.add('btn-primary');
                    }
                });
            }
        });
    </script>
</body>
</html>
    
